home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / AEGetIcon sample.sit / AEGetIcon sample / Read Me < prev   
Text File  |  1996-06-23  |  2KB  |  44 lines

  1. About AEGetIcon.c
  2.  
  3. Revision 1.0.4
  4. Released on:    May 23, 1996
  5. Web version:    June 23, 1996
  6. by Fumio Rokkaku
  7.     rokkaku@inetc.roland.co.jp
  8.     PXL01437@niftyserve.or.jp
  9.     http://www.inetc.roland.co.jp/~rokkaku/
  10.  
  11. AEGetIcon.c provides a function to obtain an icon suite of a file or 
  12. a folder using AppleEvents. It requests an icon data of an FSSpec to 
  13. Finder, receives the reply and creates a suite.
  14.  
  15. From the outside of the source code, you can call it using the following 
  16. interface.
  17. extern    OSErr GetIconSuiteFromFinder(FSSpecPtr hfsObj, Handle *suite);
  18.  
  19. Copy this prototype in your source code.
  20.  
  21. StdGetFolder.c is written based on a source code of FinderDrag written 
  22. by Nitin Ganatra at MacDTS.
  23.  
  24. I re-wrote it because the original FinderDrag implements many exception 
  25. handlers, and hence, we have to include a lot of related files. I found 
  26. it to be difficult to make use of the source code easily from other 
  27. programs. So I cut out the complex relations. You can simply use the 
  28. AEGetIcon.c likely a library.
  29.  
  30. I also separated a large function into several subroutines so that you 
  31. can make use of this not only for icons but also other file properties.
  32.  
  33. I think I added a few originality into this source code but it is fully 
  34. owing to the MacDTS sample. Respecting the DTS effort, I never claim 
  35. copyright concerning this source code. Also, I am not responsible to 
  36. any result when you make use of this. Use it at your own risk.
  37.  
  38. Notice:
  39. To run the AEGetIcon.c, you need Scriptable Finder.
  40. Use it under System 7.5 or greater. Otherwise use it under System 7.1.2 
  41. (System 7 Pro) with Scriptable Finder.
  42.  
  43. Enjoy!
  44.